package com.lwlk.zdk.model.pw;

import java.util.ArrayList;
import java.util.List;

public class pwAssessGradeIndexExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public pwAssessGradeIndexExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andAssessGradeIdIsNull() {
            addCriterion("assess_grade_id is null");
            return (Criteria) this;
        }

        public Criteria andAssessGradeIdIsNotNull() {
            addCriterion("assess_grade_id is not null");
            return (Criteria) this;
        }

        public Criteria andAssessGradeIdEqualTo(Integer value) {
            addCriterion("assess_grade_id =", value, "assessGradeId");
            return (Criteria) this;
        }

        public Criteria andAssessGradeIdNotEqualTo(Integer value) {
            addCriterion("assess_grade_id <>", value, "assessGradeId");
            return (Criteria) this;
        }

        public Criteria andAssessGradeIdGreaterThan(Integer value) {
            addCriterion("assess_grade_id >", value, "assessGradeId");
            return (Criteria) this;
        }

        public Criteria andAssessGradeIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("assess_grade_id >=", value, "assessGradeId");
            return (Criteria) this;
        }

        public Criteria andAssessGradeIdLessThan(Integer value) {
            addCriterion("assess_grade_id <", value, "assessGradeId");
            return (Criteria) this;
        }

        public Criteria andAssessGradeIdLessThanOrEqualTo(Integer value) {
            addCriterion("assess_grade_id <=", value, "assessGradeId");
            return (Criteria) this;
        }

        public Criteria andAssessGradeIdIn(List<Integer> values) {
            addCriterion("assess_grade_id in", values, "assessGradeId");
            return (Criteria) this;
        }

        public Criteria andAssessGradeIdNotIn(List<Integer> values) {
            addCriterion("assess_grade_id not in", values, "assessGradeId");
            return (Criteria) this;
        }

        public Criteria andAssessGradeIdBetween(Integer value1, Integer value2) {
            addCriterion("assess_grade_id between", value1, value2, "assessGradeId");
            return (Criteria) this;
        }

        public Criteria andAssessGradeIdNotBetween(Integer value1, Integer value2) {
            addCriterion("assess_grade_id not between", value1, value2, "assessGradeId");
            return (Criteria) this;
        }

        public Criteria andIndexNameIsNull() {
            addCriterion("index_name is null");
            return (Criteria) this;
        }

        public Criteria andIndexNameIsNotNull() {
            addCriterion("index_name is not null");
            return (Criteria) this;
        }

        public Criteria andIndexNameEqualTo(String value) {
            addCriterion("index_name =", value, "indexName");
            return (Criteria) this;
        }

        public Criteria andIndexNameNotEqualTo(String value) {
            addCriterion("index_name <>", value, "indexName");
            return (Criteria) this;
        }

        public Criteria andIndexNameGreaterThan(String value) {
            addCriterion("index_name >", value, "indexName");
            return (Criteria) this;
        }

        public Criteria andIndexNameGreaterThanOrEqualTo(String value) {
            addCriterion("index_name >=", value, "indexName");
            return (Criteria) this;
        }

        public Criteria andIndexNameLessThan(String value) {
            addCriterion("index_name <", value, "indexName");
            return (Criteria) this;
        }

        public Criteria andIndexNameLessThanOrEqualTo(String value) {
            addCriterion("index_name <=", value, "indexName");
            return (Criteria) this;
        }

        public Criteria andIndexNameLike(String value) {
            addCriterion("index_name like", value, "indexName");
            return (Criteria) this;
        }

        public Criteria andIndexNameNotLike(String value) {
            addCriterion("index_name not like", value, "indexName");
            return (Criteria) this;
        }

        public Criteria andIndexNameIn(List<String> values) {
            addCriterion("index_name in", values, "indexName");
            return (Criteria) this;
        }

        public Criteria andIndexNameNotIn(List<String> values) {
            addCriterion("index_name not in", values, "indexName");
            return (Criteria) this;
        }

        public Criteria andIndexNameBetween(String value1, String value2) {
            addCriterion("index_name between", value1, value2, "indexName");
            return (Criteria) this;
        }

        public Criteria andIndexNameNotBetween(String value1, String value2) {
            addCriterion("index_name not between", value1, value2, "indexName");
            return (Criteria) this;
        }

        public Criteria andPercentagePointsIsNull() {
            addCriterion("percentage_points is null");
            return (Criteria) this;
        }

        public Criteria andPercentagePointsIsNotNull() {
            addCriterion("percentage_points is not null");
            return (Criteria) this;
        }

        public Criteria andPercentagePointsEqualTo(String value) {
            addCriterion("percentage_points =", value, "percentagePoints");
            return (Criteria) this;
        }

        public Criteria andPercentagePointsNotEqualTo(String value) {
            addCriterion("percentage_points <>", value, "percentagePoints");
            return (Criteria) this;
        }

        public Criteria andPercentagePointsGreaterThan(String value) {
            addCriterion("percentage_points >", value, "percentagePoints");
            return (Criteria) this;
        }

        public Criteria andPercentagePointsGreaterThanOrEqualTo(String value) {
            addCriterion("percentage_points >=", value, "percentagePoints");
            return (Criteria) this;
        }

        public Criteria andPercentagePointsLessThan(String value) {
            addCriterion("percentage_points <", value, "percentagePoints");
            return (Criteria) this;
        }

        public Criteria andPercentagePointsLessThanOrEqualTo(String value) {
            addCriterion("percentage_points <=", value, "percentagePoints");
            return (Criteria) this;
        }

        public Criteria andPercentagePointsLike(String value) {
            addCriterion("percentage_points like", value, "percentagePoints");
            return (Criteria) this;
        }

        public Criteria andPercentagePointsNotLike(String value) {
            addCriterion("percentage_points not like", value, "percentagePoints");
            return (Criteria) this;
        }

        public Criteria andPercentagePointsIn(List<String> values) {
            addCriterion("percentage_points in", values, "percentagePoints");
            return (Criteria) this;
        }

        public Criteria andPercentagePointsNotIn(List<String> values) {
            addCriterion("percentage_points not in", values, "percentagePoints");
            return (Criteria) this;
        }

        public Criteria andPercentagePointsBetween(String value1, String value2) {
            addCriterion("percentage_points between", value1, value2, "percentagePoints");
            return (Criteria) this;
        }

        public Criteria andPercentagePointsNotBetween(String value1, String value2) {
            addCriterion("percentage_points not between", value1, value2, "percentagePoints");
            return (Criteria) this;
        }

        public Criteria andLowestMarkRatioIsNull() {
            addCriterion("lowest_mark_ratio is null");
            return (Criteria) this;
        }

        public Criteria andLowestMarkRatioIsNotNull() {
            addCriterion("lowest_mark_ratio is not null");
            return (Criteria) this;
        }

        public Criteria andLowestMarkRatioEqualTo(String value) {
            addCriterion("lowest_mark_ratio =", value, "lowestMarkRatio");
            return (Criteria) this;
        }

        public Criteria andLowestMarkRatioNotEqualTo(String value) {
            addCriterion("lowest_mark_ratio <>", value, "lowestMarkRatio");
            return (Criteria) this;
        }

        public Criteria andLowestMarkRatioGreaterThan(String value) {
            addCriterion("lowest_mark_ratio >", value, "lowestMarkRatio");
            return (Criteria) this;
        }

        public Criteria andLowestMarkRatioGreaterThanOrEqualTo(String value) {
            addCriterion("lowest_mark_ratio >=", value, "lowestMarkRatio");
            return (Criteria) this;
        }

        public Criteria andLowestMarkRatioLessThan(String value) {
            addCriterion("lowest_mark_ratio <", value, "lowestMarkRatio");
            return (Criteria) this;
        }

        public Criteria andLowestMarkRatioLessThanOrEqualTo(String value) {
            addCriterion("lowest_mark_ratio <=", value, "lowestMarkRatio");
            return (Criteria) this;
        }

        public Criteria andLowestMarkRatioLike(String value) {
            addCriterion("lowest_mark_ratio like", value, "lowestMarkRatio");
            return (Criteria) this;
        }

        public Criteria andLowestMarkRatioNotLike(String value) {
            addCriterion("lowest_mark_ratio not like", value, "lowestMarkRatio");
            return (Criteria) this;
        }

        public Criteria andLowestMarkRatioIn(List<String> values) {
            addCriterion("lowest_mark_ratio in", values, "lowestMarkRatio");
            return (Criteria) this;
        }

        public Criteria andLowestMarkRatioNotIn(List<String> values) {
            addCriterion("lowest_mark_ratio not in", values, "lowestMarkRatio");
            return (Criteria) this;
        }

        public Criteria andLowestMarkRatioBetween(String value1, String value2) {
            addCriterion("lowest_mark_ratio between", value1, value2, "lowestMarkRatio");
            return (Criteria) this;
        }

        public Criteria andLowestMarkRatioNotBetween(String value1, String value2) {
            addCriterion("lowest_mark_ratio not between", value1, value2, "lowestMarkRatio");
            return (Criteria) this;
        }

        public Criteria andScoreIsNull() {
            addCriterion("score is null");
            return (Criteria) this;
        }

        public Criteria andScoreIsNotNull() {
            addCriterion("score is not null");
            return (Criteria) this;
        }

        public Criteria andScoreEqualTo(Integer value) {
            addCriterion("score =", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotEqualTo(Integer value) {
            addCriterion("score <>", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThan(Integer value) {
            addCriterion("score >", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreGreaterThanOrEqualTo(Integer value) {
            addCriterion("score >=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThan(Integer value) {
            addCriterion("score <", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreLessThanOrEqualTo(Integer value) {
            addCriterion("score <=", value, "score");
            return (Criteria) this;
        }

        public Criteria andScoreIn(List<Integer> values) {
            addCriterion("score in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotIn(List<Integer> values) {
            addCriterion("score not in", values, "score");
            return (Criteria) this;
        }

        public Criteria andScoreBetween(Integer value1, Integer value2) {
            addCriterion("score between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andScoreNotBetween(Integer value1, Integer value2) {
            addCriterion("score not between", value1, value2, "score");
            return (Criteria) this;
        }

        public Criteria andScoreExplainIsNull() {
            addCriterion("score_explain is null");
            return (Criteria) this;
        }

        public Criteria andScoreExplainIsNotNull() {
            addCriterion("score_explain is not null");
            return (Criteria) this;
        }

        public Criteria andScoreExplainEqualTo(String value) {
            addCriterion("score_explain =", value, "scoreExplain");
            return (Criteria) this;
        }

        public Criteria andScoreExplainNotEqualTo(String value) {
            addCriterion("score_explain <>", value, "scoreExplain");
            return (Criteria) this;
        }

        public Criteria andScoreExplainGreaterThan(String value) {
            addCriterion("score_explain >", value, "scoreExplain");
            return (Criteria) this;
        }

        public Criteria andScoreExplainGreaterThanOrEqualTo(String value) {
            addCriterion("score_explain >=", value, "scoreExplain");
            return (Criteria) this;
        }

        public Criteria andScoreExplainLessThan(String value) {
            addCriterion("score_explain <", value, "scoreExplain");
            return (Criteria) this;
        }

        public Criteria andScoreExplainLessThanOrEqualTo(String value) {
            addCriterion("score_explain <=", value, "scoreExplain");
            return (Criteria) this;
        }

        public Criteria andScoreExplainLike(String value) {
            addCriterion("score_explain like", value, "scoreExplain");
            return (Criteria) this;
        }

        public Criteria andScoreExplainNotLike(String value) {
            addCriterion("score_explain not like", value, "scoreExplain");
            return (Criteria) this;
        }

        public Criteria andScoreExplainIn(List<String> values) {
            addCriterion("score_explain in", values, "scoreExplain");
            return (Criteria) this;
        }

        public Criteria andScoreExplainNotIn(List<String> values) {
            addCriterion("score_explain not in", values, "scoreExplain");
            return (Criteria) this;
        }

        public Criteria andScoreExplainBetween(String value1, String value2) {
            addCriterion("score_explain between", value1, value2, "scoreExplain");
            return (Criteria) this;
        }

        public Criteria andScoreExplainNotBetween(String value1, String value2) {
            addCriterion("score_explain not between", value1, value2, "scoreExplain");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}